<h1>Welcome, {{username}} </h1>
{{file}}
<br><br>

  <form enctype="multipart/form-data" action="/mainpage/upload/" method="post">
  {% csrf_token %}
   {{ form.non_field_errors }} 
    
      {{ form.name.errors }}
    <label for="id_name">Painting Name:</label> {{ form.name }}

	<br>
      {{ form.artist.errors }}
  		
    <label for="id_artist">Artist:</label> {{ form.artist }}

 	<br>  
      {{ form.description.errors }}
    <label for="id_description">Description: </label>{{ form.description }}

<br>  
      {{ form.file.errors }}
    <label for="id_first">File Upload: </label>{{ form.file }}
    <br>
    <br>
    <input type="submit" value="Upload Painting" />
   </form>